/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package k3tool.opf.model;

import java.text.SimpleDateFormat;

/**
 *
 * @author Jeff Huang
 */
public abstract class KindleOpfConstants {

    public static final String OPF_NAMESPACE = "http://www.idpf.org/2007/opf";
    public static final String PACKAGE_VERSION = "2.0";
    public static final String PACKAGE_UNIQUE_ID = "BookId";

    public static final String DC_NAMESPACE = "http://purl.org/dc/elements/1.1/";

    private static final ThreadLocal<SimpleDateFormat> DATE_FORMATTER = new ThreadLocal<SimpleDateFormat>();

    public static final SimpleDateFormat getDateFormatter() {
        SimpleDateFormat formatter = DATE_FORMATTER.get();
        if(formatter != null)
            return formatter;
        formatter = new SimpleDateFormat("yyyy-MM-dd");
        DATE_FORMATTER.set(formatter);
        return formatter;
    }
}
